package com.greenyoung.pwiki.uaa;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author Mr.Zhao
 */
@SpringBootApplication
public class PwikiUaaApplication {

    public static void main(String[] args) {
        SpringApplication.run(PwikiUaaApplication.class, args);
        ConfigurableApplicationContext applicationContext = SpringApplication.run(PwikiUaaApplication.class, args);
        Logger logger = LoggerFactory.getLogger(PwikiUaaApplication.class);
        logger.info(applicationContext.getEnvironment().getProperty("my-nacos-config-test"));
    }
}
